import request from '@/utils/request'

// 查询离岗管理列表
export function listLeave1(query) {
  return request({
    url: '/handover/leave1/list',
    method: 'get',
    params: query
  })
}

// 查询离岗管理详细
export function getLeave1(leaveId) {
  return request({
    url: '/handover/leave1/' + leaveId,
    method: 'get'
  })
}

// 新增离岗管理
export function addLeave1(data) {
  return request({
    url: '/handover/leave1',
    method: 'post',
    data: data
  })
}

// 修改离岗管理
export function updateLeave1(data) {
  return request({
    url: '/handover/leave1',
    method: 'put',
    data: data
  })
}

// 删除离岗管理
export function delLeave1(leaveId) {
  return request({
    url: '/handover/leave1/' + leaveId,
    method: 'delete'
  })
}
